//
//  AudioPlayManager.m
//  tcpoctest
//
//  Created by apple on 13-6-29.
//  Copyright (c) 2013年 gump. All rights reserved.
//

#import "AudioPlayManager.h"

#import <AudioToolbox/AudioToolbox.h>

@implementation AudioPlayManager

static AudioPlayManager *sharedInstance = nil;

+(AudioPlayManager*)shareControl
{
    if(!sharedInstance)
    {
        sharedInstance = [[super alloc] init];
    }
    return sharedInstance;
}

-(void)playSystem:(int)systemid
{
    if ([DataControl shareControl].personDS.uinfo.bSound) {
        AudioServicesPlaySystemSound(systemid);
    }
}

@end
